﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.constructionmodule.Builder
{
    class Program
    {
        void main()
        {
            //主要体现，构造者将对象的组成部分，和构造的算法分离
            var director = new Director();
            var b1 = new ConcretBuilderA();
            var b2 = new ConcretBuilderB();

            director.Construct(b1);
            var p1 = b1.Getresult();
            p1.Show();

            director.Construct(b2);
            var p2 = b2.Getresult();
            p2.Show();
        }
    }
}
